package cn.com.thinvent.dispatch.service.biz.impl;

import cn.com.thinvent.dispatch.dao.ModelUserMapper;
import cn.com.thinvent.dispatch.entity.ModelUser;
import cn.com.thinvent.dispatch.service.biz.UserService;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Component
public class UserServiceImpl implements UserService {

    @Resource
    private ModelUserMapper modelUserMapper;

    @Override
    public ModelUser login(ModelUser modelUser) {
        return modelUserMapper.getOne(modelUser.getUserName(), modelUser.getPwd());
    }
}
